package com.qf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 订单表
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class Order extends BaseEntity {

    @TableId(type = IdType.AUTO)
    private Integer id; // 订单id
    private Integer uid; // 用户id
    private Integer gid; // 商品id
    private Integer quantity; // 购买数量
    private BigDecimal total; // 订单总价

}
